home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
angel_fr.swf
/
scripts
/
frame_2
/
DoAction_2.as
next >
Wrap
Text File
|
2013-04-24
|
843b
|
50 lines
function vol_watch(prop, oldval, newval)
{
if(newval == 1)
{
var _loc2_ = 0;
while(_loc2_ < 30)
{
_root["so" + _loc2_].setVolume(100);
_loc2_ = _loc2_ + 1;
}
}
else
{
_loc2_ = 0;
while(_loc2_ < 30)
{
_root["so" + _loc2_].setVolume(0);
_loc2_ = _loc2_ + 1;
}
}
}
stop();
stopAllSounds();
sounds = new Array();
var i = 0;
while(i < 25)
{
this["so" + i] = new Sound(this);
this["so" + i].attachSound("so" + i);
i++;
}
start_bt.onRelease = function()
{
gotoAndStop(4);
};
help_bt.onRelease = function()
{
gotoAndStop(3);
};
start_bt.onRollOver = function()
{
so17.start(0,1);
};
help_bt.onRollOver = function()
{
so17.start(0,1);
};
var vol = 1;
this.watch("vol",vol_watch);